package com.yuantong.xyerp.core.api.service;

import com.yuantong.xyerp.core.api.model.Attachment;

import java.io.InputStream;
import java.util.List;

/**
 * @author 金鑫
 * @date 2019/9/5 0005
 */
public interface IAttachmentService {
    /**
     * 根据id获取附件信息
     * @param id
     * @return
     */
    Attachment getById(String id);
    void saveAttachment(Attachment attachment);
    void deleteAttachment(String attachmentId);
    List<Attachment> getByMasterId(String masterId);
}
